package com.aaa.system.controller;

import com.aaa.entity.UUserPermission;
import com.aaa.system.service.UserPermissionService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("system/userPermission")
public class UserPermissionController {

    @Autowired
    private UserPermissionService userPermissionService;

    @GetMapping("/all")
    public List<UUserPermission> all(){
        List<UUserPermission> all = userPermissionService.findAll();
        return all;
    }

    @GetMapping("/businessInfoAll")
    public List<UUserPermission>businessInfoAll() {
        List<UUserPermission> businessAll = userPermissionService.businessInfoAll();
        return businessAll;
    }


}
